home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nebula 1
/
Nebula One.iso
/
Mail
/
pine3.92
/
pine
/
osdep
/
creatdir
< prev
next >
Wrap
Text File
|
1993-07-15
|
506b
|
22 lines
/*----------------------------------------------------------------------
Create the mail subdirectory.
Args: dir -- Name of the directory to create
Result: Directory is created. Returns 0 on success, else -1 on error
and errno is valid.
----*/
create_mail_dir(dir)
char *dir;
{
if(mkdir(dir, 0700) < 0)
return(-1);
(void)chmod(dir, 0700);
/* Some systems need this, on others we don't care if it fails */
(void)chown(dir, getuid(), getgid());
return(0);
}